import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
  },
  state: {
    token: null,
    navigationHeight: 47,
    statusBarHeight: 0,
  },
  mutations: {
    setToken (state, val) {
      state.token = val
      sessionStorage.setItem('cspace-token', val)
    },
    setNavHeight (state, val) {
      state.navigationHeight = val
    },
    setStatusHeight (state, val) {
      state.statusBarHeight = val
    }
  },
  actions: {
  },
  getters
})
